﻿@model IEnumerable<VOD.Models.Notice>

@{
    ViewBag.Title = "Index";
}

<h1>公告列表</h1>

<table>
    <tr class="thead">
        <th width="100">标题</th>
        <th width="400">内容</th>
        <th width="100">添加时间</th>
        <th width="100">过期时间</th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.NoticeTitle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NoticeContent)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AddDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.InvalidDate)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.NoticeID }) |
            @Html.ActionLink("查看", "Details", new { id=item.NoticeID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.NoticeID })
        </td>
    </tr>
}

</table>
